<fieldset class="radius-8px list-category-2">
    <legend class="radius-5px"><a href=""><?php echo $data->name; ?></a></legend>
    <ul>
    <?php $subcates = Category::getChilds($data->id);
    foreach ($subcates as $subcate) :?>    
        <li ><?php echo $subcate['text']; ?></li>
        <?php endforeach;  ?>
    </ul>
</fieldset>